package com.lxitedu;

import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Scopes;
import com.lxitedu.demo.Bad;
import com.lxitedu.demo.Good;
import com.lxitedu.demo.Service;
import com.lxitedu.demo.ServiceImplBad;
import com.lxitedu.demo.ServiceImplGood;

public class MyModule implements Module {
	public void configure(Binder binder) {
//		binder.bind(Service.class).to(ServiceImpl.class).in(Scopes.SINGLETON);
		binder.bind(Service.class).annotatedWith(Good.class).to(ServiceImplGood.class);
		binder.bind(Service.class).annotatedWith(Bad.class).to(ServiceImplBad.class);
	}

}
